package com.sinsz.c.mongo.context;

import com.sinsz.c.mongo.annotation.EnableBxfsMongo;
import org.springframework.data.mongodb.repository.config.MongoRepositoryConfigurationExtension;
import org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport;
import org.springframework.data.repository.config.RepositoryConfigurationExtension;

import java.lang.annotation.Annotation;

public class BxfsMongoRegister extends RepositoryBeanDefinitionRegistrarSupport {

    @Override
    protected Class<? extends Annotation> getAnnotation() {
        return EnableBxfsMongo.class;
    }

    @Override
    protected RepositoryConfigurationExtension getExtension() {
        return new MongoRepositoryConfigurationExtension();
    }
}